/*
 * Part of knowledge engineering (ke) course work, 2010/11
 */
package se.bth.ke.firstfriend.model.validation;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import se.bth.ke.firstfriend.model.User;

/**
 *
 * @author nico
 */
public class VerifiedPasswordValidator implements ConstraintValidator<ValidPassword, User> {

    @Override
    public void initialize(ValidPassword constraintAnnotation) {        
    }

    @Override
    public boolean isValid(User value, ConstraintValidatorContext context) {
        return true;
        //return value.isPasswordValid();
    }    
}
